package com.coocaa.ops.common.core.biz.panel.constant;

import lombok.experimental.UtilityClass;

import java.util.Objects;

/**
 * @author bijiahao
 * @description
 * @date 2019/12/2 17:01
 */
@UtilityClass
public class BlockRlsPictureTypeConstants {
    /**
     * 通用海报图片
     */
    public static final int BLOCK_MAIN_PICTURE = 1;
    /**
     * 替补海报图片
     */
    public static final int BLOCK_ALTERNATE_PICTURE = 2;
    /**
     * 高清背景图
     */
    public static final int BLOCK_BG_PICTURE = 3;
    /**
     * 信号源落焦背景图
     */
    public static final int BLOCK_FOCUS_PICTURE = 4;
    /**
     * 动图推荐位-海报前景图
     */
    public static final int BLOCK_FRONT_PICTURE = 5;
    /**
     * 动图推荐位-海报背景图
     */
    public static final int BLOCK_BACKGROUND_PICTURE = 6;

    /**
     * 通用海报图片
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockCommonPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_MAIN_PICTURE);
    }

    /**
     * 替补海报图片
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockAlterPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_ALTERNATE_PICTURE);
    }

    /**
     * 高清背景图
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockBgPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_BG_PICTURE);
    }

    /**
     * 落焦图-异形海报
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockFocusPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_FOCUS_PICTURE);
    }

    /**
     * 动图推荐位-海报前景图
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockDynamicFrontPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_FRONT_PICTURE);
    }

    /**
     * 动图推荐位-海报背景图
     *
     * @param vPicType
     * @return
     */
    public static boolean isBlockDynamicBackgroundPicture(Integer vPicType) {
        return Objects.equals(vPicType, BLOCK_BACKGROUND_PICTURE);
    }
}
